
@media (min-width: 420px) and (min-height: 350px) {

    .container-sp {
        font-size: 24px;
    }
}

@media (min-width: 576px) and (min-height: 400px) {

    .container-sp {
        font-size: 30px;
    }
}

@media (min-width: 620px) and (min-height: 450px) {

    .container-sp {
        font-size: 36px;
    }
}

@media (min-width: 768px) and (min-height: 530px) {

    .container-sp {
        font-size: 50px;
    }
}


.font-spider {
    font-size: 0.7rem;
    letter-spacing: 0.06rem;
    opacity: 0;
    animation: appear 2s 2.75s;
    animation-fill-mode: forwards;
}

.font-spider span {
    display: inline-block;
    transform: scaleY(-1);
}

@keyframes appear {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.8;
    }
}

.container-sp {
    background-color: #fff;
    background: rgba(221, 221, 221, 0.7);
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    position: relative;
    box-shadow: 0.2rem 0.2rem 0.5rem 0 rgba(51, 51, 51, 0.5);
    box-shadow: inset 0.25rem 0.25rem 1rem 0 rgba(51, 51, 51, 0.2);
    overflow: hidden;
    display: grid;
    justify-content: center;
    align-content: center;
}

.container-sp .spiderweb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(250, 250, 250, 0.6);
}

.spider-container {
    display: grid;
    justify-content: center;
    position: absolute;
    left: 3.25rem;
    top: 7rem;
    transform: translateY(-10rem);
    animation: bounce 0.675s 1.5s cubic-bezier(0.25, 0.46, 0.29, 1.25) 1;
    animation-fill-mode: forwards;
}

@keyframes bounce {
    0% {
        transform: translateY(-8rem);
    }

    100% {
        transform: translateY(2rem);
    }
}

.spider {
    width: 12rem;
    position: absolute;
    display: flex;
    justify-content: center;
    transform: rotate(-10deg);
}

.spider::before {
    content: "";
    display: block;
    width: 4px;
    height: 8rem;
    position: absolute;
    background-color: rgba(250, 250, 250, 0.6);
    bottom: 100%;
    transform-origin: bottom;
    transform: rotate(10deg);
}

.spider .body {
    width: 1.8rem;
    height: 1.5rem;
    background-color: #333;
    border-radius: 46%;
    position: relative;
    display: grid;
    justify-items: center;
}

.spider .body .eyes {
    width: 0.5rem;
    height: 0.2rem;
    margin-top: 20%;
    display: flex;
    justify-content: space-around;
}

.spider .body .eyes::before,
.spider .body .eyes::after {
    content: "";
    display: block;
    background-color: rgba(250, 250, 250, 0.7);
    width: 0.15rem;
    height: 0.1rem;
    border-radius: 50%;
    animation: blink 3s 3.75s infinite;
}

.spider .body .mouth {
    width: 0.3rem;
    height: 0.15rem;
    position: relative;
    bottom: 0.1rem;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0) 45%, rgba(250, 250, 250, 0.8) 45.1%, rgba(250, 250, 250, 0.8) 100%);
    border-radius: 0 0 0.3rem 0.3rem;
    transform-origin: 50% 60%;
    transform: scale(0);
    animation: smile 0.5s 4.5s ease-out 1;
    animation-fill-mode: forwards;
}

.spider .legs-left {
    width: 0.5rem;
    position: relative;
    display: grid;
    align-items: center;
    transform-origin: right;
    animation: legs-left 0.5s 1.9s ease-out 1;
}

.spider .legs-left .leg {
    width: 0.2rem;
    height: 1px;
    position: absolute;
    transform-origin: right;
    right: 0;
}

.spider .legs-left .leg::before {
    content: "";
    display: block;
    position: absolute;
    width: 1rem;
    height: 1px;
    right: 0.2rem;
    background-color: #333;
    transform-origin: right;
    transform: rotate(-35deg);
}

.spider .legs-left .leg::after {
    content: "";
    display: block;
    position: absolute;
    width: 150%;
    height: 100%;
    background-color: #333;
    transform-origin: left;
    transform: rotate(15deg);
}

.spider .legs-left .leg-2 {
    margin-bottom: 0.2rem;
    transform: rotate(10deg);
}

.spider .legs-left .leg-3 {
    margin-top: 0.15rem;
    transform: rotate(-8deg);
}

.spider .legs-right {
    width: 0.5rem;
    position: relative;
    display: grid;
    align-items: center;
    transform-origin: left;
    animation: legs-right 0.5s 1.9s ease-out 1;
}

.spider .legs-right .leg {
    width: 0.2rem;
    height: 1px;
    position: absolute;
    transform-origin: right;
    left: 0;
}

.spider .legs-right .leg::before {
    content: "";
    display: block;
    position: absolute;
    width: 1rem;
    height: 1px;
    left: 0.2rem;
    background-color: #333;
    transform-origin: left;
    transform: rotate(35deg);
}

.spider .legs-right .leg::after {
    content: "";
    display: block;
    position: absolute;
    width: 150%;
    height: 100%;
    right: 0;
    background-color: #333;
    transform-origin: right;
    transform: rotate(-15deg);
}

.spider .legs-right .leg-2 {
    margin-bottom: 0.2rem;
    transform: rotate(-10deg);
}

.spider .legs-right .leg-3 {
    margin-top: 0.15rem;
    transform: rotate(8deg);
}

@keyframes smile {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes legs-left {
    0% {
        transform: rotate(2deg);
    }

    50% {
        transform: rotate(-15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes legs-right {
    0% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes blink {
    0% {
        transform: scaleY(1);
    }

    3% {
        transform: scaleY(0);
    }

    6% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(1);
    }
}
